package util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 
 * @author Hiuling Ng and Waiyip Cheng
 * April 27th, 2013
 */

public class MyDate {
	public static String getDate() {
        SimpleDateFormat sd = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");   
        Date date = new Date();
        return sd.format(date);
    }
	public static String getDate(String format) {
		SimpleDateFormat sd = new SimpleDateFormat(format);   
        Date date = new Date();   
        return sd.format(date);
	}
}
